﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.CourseSettingInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    课程设置
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", "课程设置"); %>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
        <% using (Html.BeginForm("Index", "Setting", new { Model.Id }, FormMethod.Post, new { enctype = "multipart/form-data" }))
           {%>
    <fieldset>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CourseCode) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.CourseCode) %>
            <%: Html.ValidationMessageFor(model => model.CourseCode) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CourseName) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.CourseName) %>
            <%: Html.ValidationMessageFor(model => model.CourseName) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Teacher) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Teacher) %>
            <%: Html.ValidationMessageFor(model => model.Teacher) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.HomeworkPersan) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.HomeworkPersan)%>
            <%: Html.ValidationMessageFor(model => model.HomeworkPersan)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.ExamPersan) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.ExamPersan)%>
            <%: Html.ValidationMessageFor(model => model.ExamPersan)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.QuestionPersan) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.QuestionPersan)%>
            <%: Html.ValidationMessageFor(model => model.QuestionPersan)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.PostPersan) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.PostPersan)%>
            <%: Html.ValidationMessageFor(model => model.PostPersan)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.QuestionState) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.QuestionState)%>
            <%: Html.ValidationMessageFor(model => model.QuestionState)%>
        </div>
         <div class="editor-label">
            <%: Html.LabelFor(model => model.PostState) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.PostState)%>
            <%: Html.ValidationMessageFor(model => model.PostState)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.LoginImgLogo) %>
        </div>
        <div class="editor-field">
            <img src="<%= ResolveUrl("~/" + Model.LoginImgLogo) %>" /><br />
            <input type="file" name="LoginImgLogoFile" />
            <%: Html.ValidationMessageFor(model => model.LoginImgLogo) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.LoginImgLeft) %>
        </div>
        <div class="editor-field">
            <img src="<%= ResolveUrl("~/" + Model.LoginImgLeft) %>" /><br />
            <input type="file" name="LoginImgLeftFile" />
            <%: Html.ValidationMessageFor(model => model.LoginImgLeft) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.LoginedImgTop) %>
        </div>
        <div class="editor-field">
            <img src="<%= ResolveUrl("~/" + Model.LoginedImgTop) %>" /><br />
            <input type="file" name="LoginedImgTopFile" />
            <%: Html.ValidationMessageFor(model => model.LoginedImgTop) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.AdminImgTop) %>
        </div>
        <div class="editor-field">
            <img src="<%= ResolveUrl("~/" + Model.AdminImgTop) %>" /><br />
            <input type="file" name="AdminImgTopFile" />
            <%: Html.ValidationMessageFor(model => model.AdminImgTop) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.TodayIpHits) %>
        </div>
        <div class="editor-field">
            <%: Html.DisplayFor(model => model.TodayIpHits) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.TodayHits) %>
        </div>
        <div class="editor-field">
            <%: Html.DisplayFor(model => model.TodayHits) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.MaxOnline) %>
        </div>
        <div class="editor-field">
            <%: Html.DisplayFor(model => model.MaxOnline) %>
        </div><p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
